
/**
 * Copyright 2013 Green global company. All rights reserved. Use is subject to license terms.
 */
package webdev.fragment;

import android.support.v4.app.Fragment;
import android.view.View;

/**
 * @author thangtc
 *
 */
public abstract class BaseFragment extends Fragment {

	protected static final String TAG = "YouLook"; // This is tag to show log
	protected static boolean isDebug = true; // This is used to show log
	protected int mCountPage = 1; // This is use to count the number of page api
	protected boolean mIsHaveNoAPIData = false; // This is a flag variable, this is use to check
										// there is no data more

	/**
	 * This method is used to init all members of fragment
	 * @author thangtc
	 */
	protected abstract void init(View layout);

	/**
	 * This method is used to set value for all members of fragment
	 * @author thangtc
	 */
	protected abstract void setValueForMembers();

	/**
	 * This method is used to set event for member
	 * @author thangtc
	 */
	protected abstract void setEventForMembers();

	/**
	 * @author thangtc
	 * @return This method will return the url to load api for fragment
	 */
	protected abstract String getUrl();
}
